跳到主要内容

命令升级固件

在ssh终端输入命令 sysupgrade /tmp/openwrt-squashfs-sysupgrade.bin(这个.bin文件是你之前上传到tmp文件夹的固件,这个命令中的固件名称也要改成你实际上传的固件名称来使用)

不清楚sysupgrade怎么用可以先全用命令sysupgrade --help 查看用法:

sysupgrade --help
Usage: /sbin/sysupgrade [<upgrade-option>...] <image file or URL>
/sbin/sysupgrade [-q] [-i] <backup-command> <file>

upgrade-option:
-d <delay> add a delay before rebooting
-f <config> restore configuration from .tar.gz (file or url)
-i interactive mode
-c attempt to preserve all changed files in /etc/
-n do not save configuration over reflash
-T | --test
Verify image and config .tar.gz but do not actually flash.
-F | --force
Flash image even if image checks fail, this is dangerous!
-q less verbose
-v more verbose
-h | --help display this help

backup-command:
-b | --create-backup <file>
create .tar.gz of files specified in sysupgrade.conf
then exit. Does not flash an image. If file is '-',
i.e. stdout, verbosity is set to 0 (i.e. quiet).
-r | --restore-backup <file>
restore a .tar.gz created with sysupgrade -b
then exit. Does not flash an image. If file is '-',
the archive is read from stdin.
-l | --list-backup
list the files that would be backed up when calling
sysupgrade -b. Does not create a backup file.

4、直接开始刷固件,等待刷机完成。升级完成后,系统会自动重启.......